/*
linux c语言  
秒表计时器
come from lsxinyu.com or visit yanpengquan.cn for help
*/

# include <time.h>
# include <stdio.h>
void secends()
{
	clock_t start,finish;
	int i=0,o=0;
	start=clock();
	double time=0.00;
	while (1)
	{
		finish=clock();
		time=(double)(finish-start)/CLOCKS_PER_SEC;
		i=(int)time;
		if (i!=o)
			{
				printf("%d\n",i);
				/*
				请在这个位置书写要循环的代码
				*/
				o++;
			}
		
	}
}
void main()
{
	secends();
}
//  we are come from xinyustudio
